package com.eatrip.service.implementation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.eatrip.bean.Frequenza;
import com.eatrip.dao.FrequenzaDAO;
import com.eatrip.service.FrequenzaService;

@Service
public class FrequenzaLocaleServiceImple implements FrequenzaService {

	@Autowired
	private FrequenzaDAO frequenzaDAO;
	
	@Override
	@Transactional(readOnly=true)
	public Frequenza getFrequenza(int idFrequenza) {
		return frequenzaDAO.getFrequenza(idFrequenza);
	}

	@Override
	@Transactional(readOnly=true)
	public List<Frequenza> getAllFrequenza() {
		return frequenzaDAO.getAllFrequenza();
	}

	@Override
	@Transactional(readOnly=false)
	public void insertFrequenza(Frequenza frequenza) {
		frequenzaDAO.insertFrequenza(frequenza);
	}

}
